﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// http://www.wowhead.com/spell=119381
        /// </summary>


        public bool LegSweep()
        {
            return (MIRsettings.Instance.LegSweep) && 
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentTarget.IsWithinMeleeRange) &&
                   (StyxWoW.Me.CurrentTarget.CanInterruptCurrentSpellCast ||
                   StyxWoW.Me.CurrentTarget.IsCastingHealingSpell ||
                    Adds.Count > 0 ||
                    StyxWoW.Me.HealthPercent < 40) &&
                   CanCast("Leg Sweep");
        }
    }
}
